cmake_minimum_required(VERSION 3.10.2)

project("myx264test")

add_library(
        myx264test
        SHARED
        native-lib.cpp)

find_library(
        log-lib
        log)
add_library(
        x264
        SHARED
        IMPORTED)
set_target_properties(x264 PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/${ANDROID_ABI}/lib/libx264.so)
include_directories( ${CMAKE_SOURCE_DIR}/${ANDROID_ABI}/include)
target_link_libraries(
        myx264test
        x264
        ${log-lib})